<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'export.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<link href="<%=path%>/css/ui-lightness/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path%>/js/jquery-1.10.1.min.js"></script>
<script type="text/javascript"  src="<%=path%>/js/jquery-ui-1.10.3.custom.min.gaowei.js"></script>

<script type="text/javascript">
   $(function(){
    $("#exportButton").click(function(){
     $("#setvalue").val("gaowei");
     $("#exportForm").submit();
    /* $.ajax({
    type:"Post",
    url:"/PoliceProject/servlet/ExportExcel",
    data:{param:"select * from ddl"},
    dataType:"text",
    sucess:function(result){
              alert(result);
              // var uri = 'data:application/csv;charset=UTF-8,' + encodeURIComponent(result);
             //  window.open(uri,'tiketi.csv');
               }
    
    
    }); */
    });
   
   });

</script>
  </head>
  
  <body>
     <iframe id='target_upload' name='target_upload' src='' style='display: none'></iframe>
     <form action="/PoliceProject/servlet/ExportExcel" method="post" target="target_upload" id="exportForm">
     <input type="hidden" name="param" value="1234" id="setvalue" />
     <input type="button" id="exportButton" value="导出"/>
     </form>
   
  </body>
</html>
